﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PrintPaymentVoucher.aspx.cs"
    Inherits="HZ.Supervise.Web.Secondphase.Print.PrintPaymentVoucher" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script src="../../Scripts/PCASClass.js" type="text/javascript"></script>

    <style type="text/css">
        body
        {
            font-size: 62.5%;
            margin: 0px;
            padding: 0px;
        }
        .main
        {
            width: 800px;
            font-size: 1.1em;
            position: absolute;
            margin-left: 50%;
            left: -400px;
        }
        .mainprint
        {
            width: 800px;
            font-size: 1.1em;
            margin: 0.8em;
        }
        .parent
        {
            width: 100%;
        }
        .title
        {
            font-family: 宋体;
            font-weight: bold;
            font-size: 2.6em;
            text-align: center;
            margin-top: 1em;
        }
        .content
        {
            font-size: 2em;
            line-height: 1.5em;
        }
        .foot
        {
            margin-top: 2em;
            font-size: 2em;
            float: right;
            text-align: center;
            width: 18em;
            line-height: 1.5em;
        }
        .ULine
        {
            text-decoration: underline;
            font-weight: bold;
        }
        .btnDiv
        {
            margin: 0px;
            text-align: left;
            background-color: #DCDCDC;
            height: 2.5em;
            line-height: 2.5em;
            padding: 0px;
            font-size: 1.4em;
        }
        .ChildDiv
        {
            width: 100%;
        }
        .ChildTitle
        {
            font-size: 2em;
            font-weight: bold;
            text-align: center;
            width: 100%;
            margin: 10px;
        }
        .childcontent
        {
            width: 100%;
            text-align: center;
            border-collapse: collapse;
        }
        .childcontent td
        {
            border: 1px solid;
            height: 1.5em;
        }
        .childcontent thead
        {
            font-size: 1.4em;
            text-align: center;
            line-height: 1.5em;
        }
        .childcontent tbody td
        {
            font-size: 1.4em;
            word-wrap: break-word;
        }
    </style>

    <script type="text/javascript">
        $(function() {
            $('#btnPrintDetail').click(function() {
                $('#mainDiv').removeClass().addClass("mainprint");
                $('.btnDiv').css("display", "none");
                window.print();
                $('#mainDiv').removeClass().addClass("main");
                $('.btnDiv').css("display", "block");
                return false;
            });
        })
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="btnDiv">
        <table>
            <tr>
                <td>
                    医院类型：
                </td>
                <td>
                    <asp:DropDownList ID="ddlHosType" runat="server">
                        <asp:ListItem Value="0">所有医疗机构</asp:ListItem>
                        <asp:ListItem Value="1">二三级医疗机构</asp:ListItem>
                        <asp:ListItem Value="2">基层医疗机构</asp:ListItem>
                        <asp:ListItem Value="3">社区医疗机构</asp:ListItem>
                        <asp:ListItem Value="4">乡镇医疗机构</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td align="right">
                    是否政府办：
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlIsGov" runat="server">
                        <asp:ListItem Value="">全部基层医疗机构</asp:ListItem>
                        <asp:ListItem Value="0">非政府办基层医疗机构</asp:ListItem>
                        <asp:ListItem Value="1">政府办基层医疗机构</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    日期：
                </td>
                <td>
                    <asp:TextBox ID="txtTimeFrom" runat="server" Style="width: 80px" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                </td>
                <td>
                    ---
                </td>
                <td>
                    <asp:TextBox ID="txtTimeTo" runat="server" Style="width: 80px" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                </td>
                <td>
                    <hz:HzButton ID="btnPreview" runat="server" Text="预览" OnClick="btnPreview_Click" />
                </td>
                <td>
                    <hz:HzButton ID="btnPrintDetail" runat="server" Text="打印" Visible="false" />
                </td>
            </tr>
        </table>
    </div>
    <div class="main" id="mainDiv">
        <div class="ChildDiv">
            <div class="ChildTitle">
                吉林省市（县、区）基层配送企业<br />
                网上采购药品应支付金额明细表</div>
            <table class="childcontent" cellpadding="0" cellspacing="0" style="table-layout: fixed;">
                <thead>
                    <tr>
                        <td style="width: 1em;">
                            序号
                        </td>
                        <td style="width: 5em;">
                            配送企业名称
                        </td>
                        <td style="width: 4em;">
                            所属月份
                        </td>
                        <td style="width: 3em;">
                            入库单金额
                        </td>
                        <td style="width: 3em;">
                            退货单金额
                        </td>
                        <td style="width: 3em;">
                            应支付金额
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <asp:Literal ID="litContent" runat="server"></asp:Literal>
                </tbody>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
